#输入n个学生的姓名和语文成绩，存储为字典{姓名: 成绩}。计算平均分，并统计≥平均分和<平均分的人数。
students = {}
n = int(input("请输入学生人数："))
for _ in range(n):
    name = input("请输入学生姓名：")
    score = int(input("请输入学生成绩："))
    students[name] = score
average = sum(students.values()) / n
print(f'average = {average:.1f}')
count_above = 0
count_below = 0
for score in students.values():
    if(score >= average):
        count_above += 1
    if(score < average):
        count_below +=1
print(f'>=平均分的有{count_above}人')
print(f'<平均分的有{count_below}人')
